<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<html>
<head>
<meta charset="UTF-8">
<title>管理登录-azhuo商城</title>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />

<link rel="shortcut icon" href="${pageContext.request.contextPath }/image/logo/xyz.ico" type="image/x-icon" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/font.css">
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/xadmin.css">
<script type="text/javascript" src="${pageContext.request.contextPath }/css/jquery.min.js"></script>
<script src="${pageContext.request.contextPath }/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/xadmin.js"></script>

</head>

<body>
	<div class="login layui-anim layui-anim-up">
		<div class="message">管理登录</div>
		<div id="darkbannerwrap"></div>
		<span style="color: red; font-size: 18px;">
			<c:choose>
				<c:when test="${!empty msg }">错误信息：${msg}</c:when>
			</c:choose>
		</span>
		<form method="post" class="layui-form" action="${pageContext.request.contextPath }/admin/AdminUserServlet">
			<input type="hidden" name="method" value="login"/>
			<input name="username" placeholder="用户名" type="text" lay-verify="required" class="layui-input"/>
			<span style="color: red;">${msgUsername }</span>
			<hr class="hr15">
			<input name="password" lay-verify="required" placeholder="密码" type="password" class="layui-input"/>
			<span style="color: red;">${msgPassword }</span>
			<hr class="hr15">
			<input value="登录" lay-submit lay-filter="login" style="width:100%;" type="submit"/>
			<hr class="hr20">
		</form>
	</div>

	<script>
		$(function() {
			layui.use('form', function() {
				var form = layui.form;s
				form.on('submit(login)', function(data) {
					layer.msg(JSON.stringify(data.field), function() {
						location.href = 'index.html'
					});
					return false;
				});
			});
		})
	</script>
</body>
</html>
